/* @author Andrew Mott
 * Created February 22, 2007 */
package edu.byu.isys415.alm223;

import edu.byu.isys415.alm223.CustomerDAO;
import edu.byu.isys415.alm223.GUID;
import edu.byu.isys415.alm223.MembershipDAO;

/**
 * This class is a tester for two classes that I have, AccountDAO.java and AccountBO.java.
 * This will give you an idea of what your tester class should do. Dr. Albrect also showed
 * you an example of this last semester.
 *
 * AccountDAO has CRUD methods
 * AccountBO has the variables: balance and account number
 */

public class Tester {

public static void main(String args[]) throws Exception {

         String g = GUID.generate();  //calls the GUID method.
         System.out.println(g);
        
} //end main


//    public Tester() {
        
//        try {
//            AccountBO account = AccountDAO.getInstance().create();
//            String id = account.getId();
//            account.setBalance(10.5);
//            account.setAccountID(123456);
//            AccountDAO.getInstance().save(account);
//            AccountBO account2 = AccountDAO.getInstance().read(id);
//            System.out.println(account2.getBalance());
//            System.out.println(account2.getAccountID());
//        } catch (DataException ex) {
//            ex.printStackTrace();
//        }
//    }
    
}
